<%include file="include/head.html"%>
<link rel="stylesheet" type="text/css" href="<%$CSS_DIR%>/jquery.ad-gallery.css">
<link rel="stylesheet" type="text/css" href="<%$CSS_DIR%>/album.css">
<div class="wrapper">
  <div id="div-home" class="main-info-box">
    <%include file="include/crumbs.html"%>
    <nav id="nav" class="second-level-nav">
      <ul>
	<%if $authorized || $user.open eq 'public'%>
	<li><a href="/tree/index?userid=<%$user.id%>">查看家谱</a></li>
	<li><a href="/users/album?userid=<%$user.id%>">查看相册</a></li>
	<%if $session.id == $user.creator && $user.state == RESOURCE_STATE_DELETED%>
        <li><a href="/users/restore?userid=<%$user.id%>">恢复</a></li>
	<%else%>
	<li><a href="/users/edit?userid=<%$user.id%>">编辑/纠错</a></li>
	<%/if%>
	<%/if%>
      </ul>
      <%include file="include/left_ad.html"%>
    </nav>
    
    <!-- made the gallery align center -->
    <div class="div-info-body">
    <%if $album|@count gt 0%>
    <div id="gallery" class="ad-gallery">
      <div class="ad-image-wrapper"></div>
      <div class="ad-controls"></div>
      <div class="ad-nav">
        <div class="ad-thumbs">
          <ul class="ad-thumb-list">
	    <% foreach name=album from=$album item=photo%>
	    <li>		  
	      <a href="<%$photo.photo%>">
                <img src="<%$photo.photo%>" title1="<%$photo.memo%>" alt="<%$photo.memo%>" height="60"  class="image<%$smarty.foreach.album.iteration%>">
	      </a>
	    </li>
	    <%/foreach%>
          </ul>
        </div>
      </div>
    </div>
    <%else%>
    相册中没有照片。
    <%/if%>
    <script type="text/javascript" src="<%$JS_DIR%>/jquery.ad-gallery.js"></script>
    <script type="text/javascript" src="<%$JS_DIR%>/album.js"></script>
  </div>
  <div class="clear">
  </div>
  <br/>
  <div class="right">
    返回<a href="/surnames/show?surname=<%$surnameid%>"><%$surname%>氏家谱</a>
  </div>
  <div class="clear">
  </div>
</div>

<%include file="include/bottom.html"%>
